package com.NHL.modules.container
{
	import com.NHL.modules.map.MapScence;
	import com.NHL.single.GlobalModel;
	
	import flash.display.Sprite;
	import flash.display.Stage;
	import flash.events.MouseEvent;
	
	public class StageContainer 
	{
		private var _stage:Stage;
		
		private var _uiContainer:UIContainer;
		
		private var _wndContainer:Sprite;
		
		private var _effectContainer:Sprite;
		
		private var _tipsContainer:Sprite;
		
		private var _topContainer:Sprite;		
			
		private var _mapContainer:MapScence;
		public function StageContainer(stage:Stage)
		{
			super();
			GlobalModel.getInstance().stage = stage;
			this._stage = stage;
			init();
			addEvent();
		}
		
		public function get topContainer():Sprite
		{
			return _topContainer;
		}

		public function set topContainer(value:Sprite):void
		{
			_topContainer = value;
		}

		public function get tipsContainer():Sprite
		{
			return _tipsContainer;
		}

		public function set tipsContainer(value:Sprite):void
		{
			_tipsContainer = value;
		}

		public function get effectContainer():Sprite
		{
			return _effectContainer;
		}

		public function set effectContainer(value:Sprite):void
		{
			_effectContainer = value;
		}

		public function get wndContainer():Sprite
		{
			return _wndContainer;
		}

		public function set wndContainer(value:Sprite):void
		{
			_wndContainer = value;
		}

		public function get uiContainer():UIContainer
		{
			return _uiContainer;
		}

		public function set uiContainer(value:UIContainer):void
		{
			_uiContainer = value;
		}

		public function init():void
		{
			_mapContainer = new MapScence();
			this._stage.addChild(_mapContainer);
			
			_uiContainer = new UIContainer();
			this._stage.addChild(_uiContainer);
			
			_wndContainer = new Sprite();
			this._stage.addChild(_wndContainer);
			
			_effectContainer = new Sprite();
			this._stage.addChild(_effectContainer);
			
			_tipsContainer = new Sprite();
			this._stage.addChild(_tipsContainer);
			
			_topContainer = new Sprite();
			this._stage.addChild(_tipsContainer);
		}
		
		private function addEvent():void
		{
			
		}
	}
}